package com.ranshiyan.entity;

import java.util.Date;
import java.util.List;
//学生1

import org.springframework.format.annotation.DateTimeFormat;
public class Student {
	private int id;
	private String name;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date enterDate;
	
	private int provinceId;
	private int cityId;
	private int countryId;
	
	private Area province;//省
	private Area city;//市
	private Area country;//县
	
	private List<Subject> subject;

	public Student(int id, String name, Date enterDate, int provinceId, int cityId, int countryId, Area province,
			Area city, Area country, List<Subject> subject) {
		super();
		this.id = id;
		this.name = name;
		this.enterDate = enterDate;
		this.provinceId = provinceId;
		this.cityId = cityId;
		this.countryId = countryId;
		this.province = province;
		this.city = city;
		this.country = country;
		this.subject = subject;
	}

	public Student() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getEnterDate() {
		return enterDate;
	}

	public void setEnterDate(Date enterDate) {
		this.enterDate = enterDate;
	}

	public int getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(int provinceId) {
		this.provinceId = provinceId;
	}

	public int getCityId() {
		return cityId;
	}

	public void setCityId(int cityId) {
		this.cityId = cityId;
	}

	public int getCountryId() {
		return countryId;
	}

	public void setCountryId(int countryId) {
		this.countryId = countryId;
	}

	public Area getProvince() {
		return province;
	}

	public void setProvince(Area province) {
		this.province = province;
	}

	public Area getCity() {
		return city;
	}

	public void setCity(Area city) {
		this.city = city;
	}

	public Area getCountry() {
		return country;
	}

	public void setCountry(Area country) {
		this.country = country;
	}

	public List<Subject> getSubject() {
		return subject;
	}

	public void setSubject(List<Subject> subject) {
		this.subject = subject;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", enterDate=" + enterDate + ", provinceId=" + provinceId
				+ ", cityId=" + cityId + ", countryId=" + countryId + ", province=" + province + ", city=" + city
				+ ", country=" + country + ", subject=" + subject + "]";
	}
	
	
	
	
}
